// @ts-ignore
/* eslint-disable */
import request from "axios";
import type { API } from "./typings";

/** 你好 POST /hello/hello */
export async function helloUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.helloUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<Record<string, any>>(`/api/hello/hello`, {
    method: "POST",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 不好 POST /hello/nohello */
export async function nohelloUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.nohelloUsingPOSTParams,
  body: string,
  options?: { [key: string]: any }
) {
  return request<string>(`/api/hello/nohello`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  });
}
